<?PHP
require_once "../../../../mainfile.php";
?>
<select dojoType="dijit.form.FilteringSelect" name="mediaNot" id="mediaNot" autocomplete="false" value="" onChange="retrieveMediaEntities();">
  <option value="Select Media Entity:" selected="selected">Select Media Entity:</option>
  <?PHP
		$result = $xoopsDB->query( "SELECT * FROM ".$xoopsDB->prefix("calendar_mednot")." WHERE ID <> 1 ORDER BY MediaName asc" ) ;
		if ( $result ) {
			while ( $myrow = $xoopsDB->fetchArray($result) ) {
				echo "<option value=\"".$myrow['ID']."\">".$myrow['MediaName']."</option>\n";
			}
		}
  ?>
</select>